<?php

// No direct access
defined('_JEXEC') or die;

class ApkipasController extends JController {

	protected $option;
	protected $controller;
	
	function __construct( $default = array()){
		$this->option = 'com_apkipas';
		$this->controller = 'apkipas';
		$this->layout = JRequest::getVar('layout') ;
		parent::__construct( $default );
	}
	
	function display()
	{
		switch($this->getTask()){
			case 'add':{
				JRequest::setVar( 'layout', 'form'  );
				JRequest::setVar( 'view'  , $this->controller);
			} 
			break;
			default:
				JRequest::setVar( 'view'  , $this->controller);
				break;
		}
		parent::display();
	}
}
